<#if teachers?has_content>
<table>
	<thead>
		<tr>
			<th>Id</th>
			<th>Full Name</th>
			<th>Manage Students</th>
		</tr>
	</thead>
	<tbody>
		<#list teachers as teacher>
			<tr>
				<td>${teacher.id?c}</td>
				<td>${teacher.firstName} ${teacher.lastName}</td>
				<td>
				<#if credentials.isTutor || credentials.isAdmin>
				<#if teacher.personType == 2>
					<a href="${rootPath}/courses/${courseId?c}/${teacher.id?c}/${teacher.firstName} ${teacher.lastName}">Students</a>				
				</#if></#if>
				</td>
			</tr>
		</#list>
	</tbody>
</table>
<#else>
<h2>There is no teacher.</h2>
</#if>
